In my belief system, intelligence is what you're referring to. As I understand and believe, intelligence is eternal. It is one of two elements that exist in the Cosmos. The other is matter. One acts and the other is acted upon. Intelligence comes in many grades and is co-eternal with God. We all existed as intelligences before we were spirits, and we all were spirits before we were flesh, and because of Christ we will be resurrected as perfect physical beings of great power and glory -- but not all will be equal. In other words, intelligence cannot be created nor destroyed. Animals aren't as intelligent as humans, and cats are more intelligent than dogs. It's just the way things are. Even humans differ in intelligence just as celestial bodies differ from terrestrial bodies.
That said, artificial intelligence apes real intelligence, but it can't feel, nor does it have (nor can it be made to have) self awareness. It would be a fascinating field if intelligence could be created in a laboratory, but it can't. That doesn't mean we should stop studying and building upon artificial intelligence, as I believe it holds great potential, but intelligence is more than code. Code reacts predictably to input unless it is written to react randomly. Intelligence often reacts randomly, but not because of code; it's frequently unpredictable and irrational. Yet it can learn from experience. Code can try one thing, then another, and can even predict, but it can't feel. It can't be guided by emotion such as fear or love no matter how well you can program.
My religious views are my own and I certainlyI can't prove them. But my non-religious views, above, are surely open to debate. If you haven't read it, I recommend a book entitled What Is Intelligence? by James R. Flynn. One of the things he reports is that real intelligence, flawed by our physical limitations, is yet capable of great expansion and growth. Humans, for example, can be motivated to progress. Our experiences and how we respond to them mold us into who we are, which may be why we're here. Code can't improve or progress, nor form opinions. Flynn notes: "If people have adopted the language of science and use logic and the hypothetical freely, why do so many of them believe nonsense about the Loch Ness monster, flying saucers, astrology and so forth? The answer is that scientific language and abstract argument can be used just as easily to defend nonsense as sense.... The vocabulary and habits of mind fostered by science do not automatically engender critical acumen or wisdom. They provide a foundation but much has to be done to build a temple of reason on that foundation."
So I suppose that's why there are so many religions and personal beliefs in the world. Atheists think religionists are nuts and religionists, in many cases, consign atheists to a neverending hell because they don't believe as they do. There are Muslims, Mormons, Methodists, Mennonites and many other beliefs. And I don't believe code can ever form criteria enough to form any sort of opinion. Even Flynn calls "flying saucers" "nonsense" when many intelligent people, including highly trained NASA astronauts, believe in them.